package com.hu.eurekaconsumer.Controller;

import com.hu.eurekaconsumer.FeignInterFace.HelloFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author lsp
 * @Date 2019/12/28 14:43
 * @Version 1.0
 */
@RestController
public class FeignTestController {
    @Autowired
    HelloFeign helloFeign;

    @RequestMapping("/hello/{name}")
    public String index(@PathVariable("name") String name) {
        return helloFeign.hello(name);
    }
}
